/*******************************************************************************
 * Copyright 2011 @ Kapil Viren Ahuja
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *   http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 ******************************************************************************/
package com.kapilvirenahuja.eamsteps.datareader;

import java.util.List;


/**
 * Interface to work with Data tables. It represents a single work sheet that is stored inside of
 * {@link IDataSet}. In most cases you would have a workbook or {@link IDataSet} holding a collection
 * of {@link IDataTable} and hence this interface should not be used independent of the {@link IDataSet}.
 * However, there is nothing that stops you from using is otherwise.
 * 
 */
public interface IDataTable
{
    /**
     * Return the name of the Data table.
     * 
     */
    String getName();

    /**
     * Return a collection of Data rows.
     * 
     */
    List<IDataRow> getRows();

    /**
     * Get a single row from the data table.
     * 
     */
    IDataRow getRow(int rowNumber);
}
